package com.boil.pojo;

import com.boil.util.Constants;

import java.util.ArrayList;
import java.util.List;

/**
 * 
 * 结果映射实体。
 * 
 * @author ChenYong
 * @date 2016-09-21
 *
 */
public class ResultVo {
	/** 结果代码 */
	private Integer resultCode;
	/** 结果描述 */
	private String resultMsg;
	/** 结果 */
	private Object result;
	/** 结果集 */
	private List<Object> results;

	/**
	 * 
	 * 默认构造器。
	 * 
	 */
	public ResultVo() {
		super();

		this.resultCode = Constants.SUCCESS;
		this.resultMsg = Constants.SUCCESS_MSG;
		this.results = new ArrayList<Object>();
	}

	public Integer getResultCode() {
		return resultCode;
	}

	public void setResultCode(Integer resultCode) {
		this.resultCode = resultCode;
	}

	public String getResultMsg() {
		return resultMsg;
	}

	public void setResultMsg(String resultMsg) {
		this.resultMsg = resultMsg;
	}

	public Object getResult() {
		return result;
	}

	public void setResult(Object result) {
		this.result = result;
	}

	public List<Object> getResults() {
		return results;
	}

	public void setResults(List results) {
		this.results = results;
	}

	@Override
	public String toString() {
		final StringBuffer sb = new StringBuffer("ResultVo{");
		sb.append("resultCode=").append(resultCode);
		sb.append(", resultMsg='").append(resultMsg).append('\'');
		sb.append(", result=").append(result);
		sb.append(", results=").append(results);
		sb.append('}');
		return sb.toString();
	}
}